package DB;

import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class Answer {
    private IntegerProperty answerId=new SimpleIntegerProperty();
    private StringProperty userName=new SimpleStringProperty();
    private IntegerProperty grade=new SimpleIntegerProperty();
    private IntegerProperty correct=new SimpleIntegerProperty();
    private IntegerProperty wrong=new SimpleIntegerProperty();
    private IntegerProperty time=new SimpleIntegerProperty();

    public Answer(){
    }
    public IntegerProperty answerIdPro(){
        return answerId;
    }
    public StringProperty userNamePro(){
        return userName;
    }
    public IntegerProperty gradePro(){
        return grade;
    }

    public IntegerProperty correctPro(){
        return correct;
    }
    public IntegerProperty getWrongPro(){
        return wrong;
    }
    public IntegerProperty timePro(){
        return time;
    }
    public void setAnswerId(int answerId){
        this.answerId.set(answerId);
    }
    public void setUserName(String userName){
        this.userName.set(userName);
    }
    public void setGrade(int grade){
        this.grade.set(grade);
    }
    public void setCorrect(int correct){
        this.correct.set(correct);
    }
    public void setWrong(int wrong){
        this.wrong.set(wrong);
    }
    public void setTime(int time){
        this.time.set(time);
    }
    public int getAnswerId(){
        return answerId.get();
    }
    public String getUserName(){
        return userName.get();
    }
    public int getGrade(){
        return grade.get();
    }
    public int getCorrect(){
        return correct.get();
    }
    public int getWrong(){
        return wrong.get();
    }
    public int getTime(){
        return time.get();
    }

}
